# 1.1.
list1 = [465,8231,8123485,215,612318,12534,561231561,5631,584,2318564,584,5634,561326,4156,1]
print(list1[5])

# 1.2.
for i in range(len(list1)):
    if list1[i] == 561231561:
        print("今天你猜对了哦~~~~")

# 1.3.
list2 = []
for i in range(len(list1)):
    if list1[i] %2== 0 :
        list2.append(list1[i])
print(list2)

#2
set1 = {1,2,3,4,5}
for i in set1:
    print(i)

# 3
string1 = "abcdefg"
for string2 in string1:
    print(string2)

# 4
dic1 = {'name':'s1','name1':'s2','name2':'s3','name3':'s4','name4':'s5','name4':'s6'}
for key,value in dic1.items():
    print(key,value)

# 5
list3 = ['apple', 'banana', 'orange']
for n in range(len(list3)):
    list4 = list3[n]
    print(list4)

# 6.1
set2 = {465,84564,5641,21564,1891563,481564,651,"刘闯","王李","李四","王三"}
for set3 in set2:
    if set3== "刘闯":
        print(set3)
        break

